package common;

import java.util.Date;

public class DiscussionSentence {

	public enum MessageType {
		NORMAL,
		INFO,
		NOTIFICATION	
	}
	
	private String content;
	private Discussion discussion;
	private Locutor locutor;
	private Date date;
	private Object data = null;
	
	private MessageType messageType;//si 0 alors message normal
							//si 1 alors msge d'information du serveur
							//si 2 alors notification sur le statut du correspondant => à afficher ds le pied de page
	private String color;

	public DiscussionSentence(String content, Date date, Discussion discussion,
			Locutor locutor, MessageType type) {
		super();
		this.content = content;
		this.setDate(date);
		this.discussion = discussion;
		this.locutor = locutor;
		this.messageType = type;
	}

	
	public String getColor() {
		return color;
	}


	public void setColor(String color) {
		this.color = color;
	}


	public MessageType getMessageType() {
		return messageType;
	}


	public void setMessageType(MessageType messageType) {
		this.messageType = messageType;
	}


	public void setContent(String content) {
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	public void setDiscussion(Discussion discussion) {
		this.discussion = discussion;
	}

	public Discussion getDiscussion() {
		return discussion;
	}

	public void setLocutor(Locutor locutor) {
		this.locutor = locutor;
	}

	public Locutor getLocutor() {
		return locutor;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Date getDate() {
		return date;
	}


	public void setData(Object data) {
		this.data = data;
	}


	public Object getData() {
		return data;
	}

}